﻿@{
    Layout = null;
}
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8" />
    <meta http-equiv="Pragma" content="no-cache">
    <meta http-equiv="Cache-Control" content="no-cache">
    <meta http-equiv="Expires" content="0">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0" />
    <meta name="viewport" content="initial-scale=1, width=device-width, maximum-scale=1, user-scalable=no" />
    <meta name="viewport" content="initial-scale=1.0,user-scalable=no,maximum-scale=1" media="(device-height: 568px)" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-touch-fullscreen" content="yes" />
    <meta name="full-screen" content="yes" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black" />
    <meta name="format-detection" content="telephone=no" />
    <meta name="format-detection" content="address=no" />

    <link href="~/css/StyleSheet1.css" rel="stylesheet" />
    <style>
        .goodsdetail img {
            margin-top: 0px;
        }
    </style>
    <title>大胸显小全罩杯文胸无钢圈薄款夏季缩胸蕾丝大码内衣女显胸小胖MM</title>
    <script>
        var deviceWidth = document.documentElement.clientWidth;
        if (deviceWidth > 750) deviceWidth = 750;
        document.documentElement.style.fontSize = deviceWidth / 7.5 + "px";
        document.documentElement.style.width = "100%";
    </script>
    <script src="../addons/bsht_tbk/res/js/jquery.min.js"></script>
    <script src="../addons/bsht_tbk/res/js/jq.nb.plus.js"></script>
    <script type="text/javascript" src="../addons/bsht_tbk/res/js/clipboard.min.js"></script>
    <script type="text/javascript" src="../addons/bsht_tbk/res/js/jquery.qrcode.min.js"></script>
    <script type="text/javascript" src="../addons/bsht_tbk/res/js/layer/layer.js"></script>
    <link rel="stylesheet" type="text/css" href="../addons/bsht_tbk/res/css/nb_plus.css" />
    <script src="//res.wx.qq.com/open/js/jweixin-1.1.0.js"></script>
    <script type="text/javascript">
        window.sysinfo = {
            'uniacid': '1', 'acid': '1', 'siteroot': 'http://tb.nbnet.cc/',
            'siteurl': 'http://tb.nbnet.cc/app/index.php?i=1&c=entry&op=yhj&do=show_all&m=bsht_tbk&id=286004&shopid=0',
            'attachurl': 'http://tb.nbnet.cc/attachment/',
            'attachurl_local': 'http://tb.nbnet.cc/attachment/',
            'attachurl_remote': '',
            'MODULE_URL': 'http://tb.nbnet.cc/addons/bsht_tbk/', 'cookie': { 'pre': 'a3ff_' }
        };
     
    </script>


    <style>
        .nb-sharecanvas {
            z-index: 99999;
            position: fixed;
            top: 0;
            left: 0;
            bottom: 0;
            right: 0;
            background: rgba(0,0,0,0.9);
            width: 100%;
            height: 100%;
            display: flex;
            justify-content: center;
            flex-direction: column;
            align-items: center;
        }

            .nb-sharecanvas .nb-canvas {
                width: 70%;
                max-width: 640px;
                position: relative;
                top: 0;
            }

        .nb-canvas .imgData {
            width: 100%;
            display: none;
        }

        .nb-canvas-explain {
            border-radius: 5px;
            background: #555;
            text-align: center;
            padding: 5px;
        }

        .am-icon-close {
            background: white;
            color: #555;
            position: absolute;
            right: -30px;
            top: -15px;
            width: 40px;
            height: 40px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: url("../addons/bsht_tbk/res/js/layer/skin/default/icon.png") no-repeat;
            background-position: -180px -31px;
        }
    </style>
</head>
<body>
    <style>
        .loadingbar2 {
            width: 100%;
            height: 100px;
            display: none;
            -webkit-box-pack: center;
            -webkit-box-align: center;
            position: fixed;
            top: 50%;
            left: 0;
            right: 0;
            margin-top: -1rem;
            z-index: 10000000;
            padding: 5px;
            text-align: center;
        }

        .loadingbar3 {
            width: 100%;
            height: 100px;
            display: none;
            -webkit-box-pack: center;
            -webkit-box-align: center;
            position: fixed;
            top: 50%;
            left: 0;
            right: 0;
            margin-top: -1rem;
            z-index: 10000000;
            padding: 5px;
            text-align: center;
        }

        .loading3 {
            width: 120px;
            height: 80px;
            opacity: 0.6;
            font-size: 12px;
            color: #fff;
            background: #000;
            text-align: center;
            border-radius: 5px;
            overflow: hidden;
            display: -webkit-box;
            -webkit-box-pack: center;
            -webkit-box-align: center;
            margin: 0px auto;
        }
    </style>
    <style type="text/css">


    .jump{
        float:left;
        position: relative;
		-webkit-animation:jump 1s linear 0s;
		animation-direction:alternate;
        -webkit-animation-direction:alternate;
		animation-iteration-count:2;
    }

    @@-webkit-keyframes jump
    {
        0%{
            top:0px;
            color:red;
        }
        50%{
            top:-2px;
            color:green;
        }
        100%{
            top:2px;
            color:blue;
        }
    }

    </style>
    <script>
        var deviceWidth = document.documentElement.clientWidth;
        if (deviceWidth > 750) deviceWidth = 750;
        //document.documentElement.style.fontSize = deviceWidth / 7.5 + "px";
        //document.documentElement.style.width = "100%";
    </script>
    <link href="../addons/bsht_tbk/res/css/sharepic.css" rel="stylesheet" type="text/css" />
    <div class="main" id="mainall" style="max-width:640px">

        <div class="loadingbar2" style="display:none">
            <div class='loading3'><img src='../addons/bsht_tbk/res/images/loading2.gif' style="width: 45px;height: 45px;"><br>加载中，请稍后<br></div>
        </div>

        <div class="loadingbar3" style="display:none">
            <div class='loading3'><img src='../addons/bsht_tbk/res/images/loading2.gif' style="width: 45px;height: 45px;"><br>加载中，请稍后<br></div>
        </div>
        <a href="javascript:void(0);" onclick="$('.scroll-wrapper').empty();history.go(-1);" style="position:fixed;top:15px;left:15px;z-index:99999">
            <img src="http://tb.nbnet.cc/addons/bsht_tbk/res/images/return.png" style="width:35px">
        </a>


        <a href="./index.php?i=1&c=entry&do=index&m=bsht_tbk" style="position:fixed;top:15px;right:15px;z-index:99999">
            <img src="http://tb.nbnet.cc/addons/bsht_tbk/res/images/rehome.png" style="width:35px">
        </a>

        <a href="javascript:" class="nb-camera" style="position:fixed;top:65px;right:15px;z-index:99999">
            <img src="http://tb.nbnet.cc/addons/bsht_tbk/res/images/repic.png" style="width:35px">
        </a>




        <style>
            .stat {
                height: 16px;
                margin-top: 5px;
                font-size: 12px;
                color: #999;
                line-height: 16px;
                padding:0 10px;
                margin-top:10px;
            }

                .stat .platform {
                    position: relative;
                    top: 3px;
                    display: inline-block;
                    width: 41px;
                    height: 15px;
                    background-size: 41px 15px;
                    margin-right: 7px;
                    overflow: hidden;
                   
                }
            .taobao {
                background-image: url("http://7xlxny.com1.z0.glb.clouddn.com/zhekou/taobao_post_free.png");
            }
            .price-area {
                height: 26px;
                overflow: hidden;
                padding:10px 10px 20px 10px;
            }
           .qhj {
                display: inline-block;
                height: 16px;
                font-size: 12px;
                line-height: 16px;
                color: #fff;
                padding: 0 2px;
                border-radius: 2px;
                background: url('http://0d077ef9e74d8.cdn.sohucs.com/qn4LiPh_png') center no-repeat;
                background-size: cover;
                position: relative;
                top: -2px;
            }
             .yen {
                font-size: 15px;
                color: #FF3C29;
                padding-left: 4px;
            }

            .price {
                font-size: 26px;
                color: #FF3C29;
                padding-left: 4px;
            }
            .quan-btn {
                float: right;
                min-width: 50px;
                padding: 0 5px;
                height: 26px;
                background: url('http://0d077ef9e74d8.cdn.sohucs.com/qn4Lq7w_png') center no-repeat;
                background-size: cover;
                font-size: 13px;
                line-height: 26px;
                color: #fff;
                text-align: center;
            }
        </style>
        <div class="goodsopenview">
            <div class="swiper-container">
                <ul class="swiper-wrapper">
                    <li class="swiper-slide">
                        <a href="javascript:;">
                            <div class="allpreContainer">

                                <img class="preloadbg" src="https://img.alicdn.com/imgextra/i3/2313109685/TB2PyxZwY4npuFjSZFmXXXl4FXa_!!2313109685.jpg_400x400.jpg" style="width:100%;height:100%" id="https://img.alicdn.com/imgextra/i3/2313109685/TB2PyxZwY4npuFjSZFmXXXl4FXa_!!2313109685.jpg" onclick="openWXimgnb(this);">


                                <div id="qrcode" class="showqrcode" onclick="$('#qrcode').fadeOut(300);"></div>
                        </a>
                    </li>
                </ul>
                <div class="swiper-pagination"></div>
            </div>
            <div class="goodsname">大胸显小全罩杯文胸无钢圈薄款夏季缩胸蕾丝大码内衣女显胸小胖MM</div>
            <p class="stat">
                <span style="margin-right:20px;">销量：<span>1000</span></span>
                淘宝价&nbsp;¥ 388
                <span class="platform  taobao"></span>
            </p>
            <div class="price-area"><span class="qhj">券后价</span> <span class="yen">¥</span><span class="price number-font">348.0</span> <span class="quan-btn"><em class="number-font">40 </em>元券</span></div>
        </div>
       

        <div class="goodsshow" style="display:block" id="tabtxtthis">
            <a class="seemore" href="javascript:;" id="nbmore" data-id="547442613228" nbok='0'>
                <span id="tabtxt" class="jump">商品图文详情（点击查看）</span>
            </a>
            <div class="goodsdetail">
                <p style="padding-bottom:10px">
                    大胸MM的福音，大码无钢圈文胸，薄款非常适合夏天穿着，最重要的是穿上就显胸小，再也不用担心大胸被人说成胖子了！
                </p>

                <div id="product-details" class="">
                    <div class="am-panel-bd am-padding-0" style="border-top: 0">
                        <div class="am-tab-panel am-fade am-in am-active" id="tab1" style="padding-top:0px;margin-left:-10px;padding-left:10px;padding-right:10px;display:none">
                            <div class="am-padding-top-sm" style="width:100%;overflow:auto;"></div>
                        </div>
                    </div>
                </div>

            </div>
        </div>


       
        <div class="normal item-recommend clear goodsshow" style="padding-bottom:30px;margin-top:-35px;display:block" id="cnxh">
            <a class="seemore" href="javascript:;">
                <span>本栏目更多精品</span>
            </a>
            <section class="goods">
                <ul class="goods-list-nb list_box clear" id="list_box">
                    <li class="picCon">
                        <a class="goods-a nbjump" href="./index.php?i=1&c=entry&id=285970&shopid=0&do=show_all&m=bsht_tbk" target="_self">
                            <img class="loazd" src="https://img.alicdn.com/bao/uploaded/i2/TB1G5ONPVXXXXa3aXXXXXXXXXXX_!!0-item_pic.jpg_210x210.jpg" />
                        </a>
                        <a href="./index.php?i=1&c=entry&id=285970&shopid=0&do=show_all&m=bsht_tbk" target="_self">
                            <h3>少女彩棉短裤无痕内裤礼盒装</h3>
                            <div class="list-price buy">
                                <span class="price-new" style="font-size:14px"><i>券后 ￥</i>49.00</span>
                                <a id="J_weixin" href="./index.php?i=1&c=entry&id=285970&shopid=0&do=show_all&m=bsht_tbk" target="_self" class="coupon"><span class="good-btn" style="color:#999">销量26</span></a>
                            </div>
                        </a>
                        <div class="lingquan">
                            <a id="J_weixin" href="./index.php?i=1&c=entry&id=285970&shopid=0&do=show_all&m=bsht_tbk" target="_self" class="coupon"><span style="">20元券</span></a>
                        </div>
                    </li>
                    <li class="picCon">
                        <a class="goods-a nbjump" href="./index.php?i=1&c=entry&id=285967&shopid=0&do=show_all&m=bsht_tbk" target="_self">
                            <img class="loazd" src="https://img.alicdn.com/imgextra/i1/2833012952/TB2_GKEuohnpuFjSZFEXXX0PFXa_!!2833012952.jpg_210x210.jpg" />
                        </a>
                        <a href="./index.php?i=1&c=entry&id=285967&shopid=0&do=show_all&m=bsht_tbk" target="_self">
                            <h3>袜子男浅口抗菌防臭袜短袜低帮船袜</h3>
                            <div class="list-price buy">
                                <span class="price-new" style="font-size:14px"><i>券后 ￥</i>29.00</span>
                                <a id="J_weixin" href="./index.php?i=1&c=entry&id=285967&shopid=0&do=show_all&m=bsht_tbk" target="_self" class="coupon"><span class="good-btn" style="color:#999">销量143</span></a>
                            </div>
                        </a>
                        <div class="lingquan">
                            <a id="J_weixin" href="./index.php?i=1&c=entry&id=285967&shopid=0&do=show_all&m=bsht_tbk" target="_self" class="coupon"><span style="">20元券</span></a>
                        </div>
                    </li>
                    <li class="picCon">
                        <a class="goods-a nbjump" href="./index.php?i=1&c=entry&id=285921&shopid=0&do=show_all&m=bsht_tbk" target="_self">
                            <img class="loazd" src="https://gd1.alicdn.com/imgextra/i2/2793533373/TB26Xe4sItnpuFjSZFKXXalFFXa_!!2793533373.jpg_210x210.jpg" />
                        </a>
                        <a href="./index.php?i=1&c=entry&id=285921&shopid=0&do=show_all&m=bsht_tbk" target="_self">
                            <h3>防走光四角打底中腰蕾丝薄纯棉安全裤</h3>
                            <div class="list-price buy">
                                <span class="price-new" style="font-size:14px"><i>券后 ￥</i>14.80</span>
                                <a id="J_weixin" href="./index.php?i=1&c=entry&id=285921&shopid=0&do=show_all&m=bsht_tbk" target="_self" class="coupon"><span class="good-btn" style="color:#999">销量446</span></a>
                            </div>
                        </a>
                        <div class="lingquan">
                            <a id="J_weixin" href="./index.php?i=1&c=entry&id=285921&shopid=0&do=show_all&m=bsht_tbk" target="_self" class="coupon"><span style="">5元券</span></a>
                        </div>
                    </li>
                    <li class="picCon">
                        <a class="goods-a nbjump" href="./index.php?i=1&c=entry&id=285889&shopid=0&do=show_all&m=bsht_tbk" target="_self">
                            <img class="loazd" src="https://img.alicdn.com/imgextra/i3/856017888/TB2D_ZntEdnpuFjSZPhXXbChpXa_!!856017888.jpg_210x210.jpg" />
                        </a>
                        <a href="./index.php?i=1&c=entry&id=285889&shopid=0&do=show_all&m=bsht_tbk" target="_self">
                            <h3>2件装无钢圈文胸背心瑜伽运动内衣</h3>
                            <div class="list-price buy">
                                <span class="price-new" style="font-size:14px"><i>券后 ￥</i>14.90</span>
                                <a id="J_weixin" href="./index.php?i=1&c=entry&id=285889&shopid=0&do=show_all&m=bsht_tbk" target="_self" class="coupon"><span class="good-btn" style="color:#999">销量2444</span></a>
                            </div>
                        </a>
                        <div class="lingquan">
                            <a id="J_weixin" href="./index.php?i=1&c=entry&id=285889&shopid=0&do=show_all&m=bsht_tbk" target="_self" class="coupon"><span style="">5元券</span></a>
                        </div>
                    </li>
                </ul>
            </section>
        </div>


        <!--div class="goodsgetcoupon"><a href="javascript:;" class="goodsget" data-bk="https://img.alicdn.com/imgextra/i3/2313109685/TB2PyxZwY4npuFjSZFmXXXl4FXa_!!2313109685.jpg_250x250.jpg" data-id="286004" id="286004" data-id="547442613228">马上领券立减<em class="ljmoney2">10</em>元</a></div-->


        <style>
            .nbmenu {
                position: fixed;
                width: 100%;
                max-width: 640px;
                height: 50px;
                line-height: 50px;
                display: -webkit-box;
                z-index: 10000;
                background: #FAFAFA;
                color: #ffffff;
                font-size: 12px;
                margin: auto;
                left: 0;
                right: 0;
                bottom: 0;
            }

            .nbnav {
                position: absolute;
                z-index: 10001;
                width: 20%;
                float: left;
            }

            .nbnav2 {
                position: absolute;
                z-index: 10001;
                width: 30%;
                float: left;
            }

            .nb-btn1 {
                bottom: 0;
                left: 0;
                color: #666;
                text-align: center;
            }

            .nb-btn2 {
                bottom: 0;
                left: 18%;
                color: #666;
                text-align: center;
            }

            .nb-btn3 {
                bottom: 0;
                left: 40%;
                /*background: #FB874E;*/
                background: #FF3C29;
              
                text-align: center;
            }

                .nb-btn3 a {
                    color: #ffffff;
                }

            .nb-btn4 {
                bottom: 0;
                left: 70%;
                /*background: #f54d23;*/
                background: #f54e54;
                text-align: center;
            }

                .nb-btn4 a {
                    color: #ffffff;
                }

            
        </style>
        <!--底部菜单-->
        <div class="nbmenu">
            <div id="readurl" style="display:none">https://uland.taobao.com/coupon/edetail?activityId=1121cc83046f4b46b680af50fce1b5ce&pid=mm_17057933_17798240_64626536&itemId=547442613228&src=pgy_pgyqf&dx=0</div>
            <div id="readtkl" style="display:none"></div>
            <div class="nbnav nb-btn1"><a href="./index.php?i=1&c=entry&do=index&m=bsht_tbk"><img src="http://0d077ef9e74d8.cdn.sohucs.com/qn3Aj6t_png" width="12px" height="12px" />&nbsp;首页</a></div>
            <div class="nbnav nb-btn2" onclick="wxkf()"><img src="http://0d077ef9e74d8.cdn.sohucs.com/qn3AyCE_png" width="12px" height="12px" />&nbsp;客服</div>
            <div class="nbnav2 nb-btn3"><a style="color:white" href="javascript:" onclick="openjump();">浏览器打开</a></div>
            <div class="nbnav2 nb-btn4"><a href="javascript:;" data-bk="https://img.alicdn.com/imgextra/i3/2313109685/TB2PyxZwY4npuFjSZFmXXXl4FXa_!!2313109685.jpg_250x250.jpg" data-id="286004" id="286004" data-id="547442613228" class="goodsget" style="color: #ffffff;font-size: 12px;font-weight:normal;letter-spacing: 0px;">淘口令购买</a></div>
        </div>
        <input id="isnbjumpurl" data-id="" style="display:none" value="./index.php?i=1&c=entry&isnb=1&jumpurl=&do=jump&m=bsht_tbk">
        <!--底部菜单-->


    </div>

    <style>
        .go-top {
            display: block;
            width: 42px;
            height: 42px;
            position: fixed;
            right: 20px;
            bottom: 64px;
            z-index: 10000;
            background-image: url('../addons/bsht_tbk/res/images/go_top.png');
            background-size: contain;
            opacity: 0;
            -webkit-transition: bottom .8s ease, opacity .6s ease;
        }

        .top-button-show {
            bottom: 64px;
            opacity: 1;
        }

        .top-button-hide {
            bottom: -64px;
            opacity: 0;
        }

        .go-top span {
            position: absolute;
            bottom: 9px;
            width: 100%;
            display: block;
            height: 12px;
            line-height: 12px;
            text-align: center;
            font-size: 12px;
            color: #333;
        }
    </style>
    <div class="backTop" onclick="gotop();">
        <div class="go-top top-button-hide">
            <span>顶部</span>
        </div>
    </div>

    <div class="nb-sharecanvas" style="display:none">

        <div class="nb-canvas">

            <i class="am-icon-close" style="display:none"></i>
            <canvas id="sharecanvas" style="background-color:white;display:none; width:80%" class="am-text-center am-center"></canvas>

            <img src="" class="imgData" />
            <div class="nb-canvas-explain am-text-sm nb-text-white am-margin-top-sm am-padding-xs">
                <span class="image_loading" style="display:none;color:#fff;font-size:13px;line-height:15px;padding-top:10px;padding-bottom:10px;text-align:center"><i></i>图文合成中，请耐心稍等片刻</span>
                <span class="image_show" style="color:#fff;font-size:13px;text-align:center">  说明：长按上方图片发给朋友或保存图片。</span>
            </div>

        </div>


    </div>


    <script>
        var wxcode = "<div style='width:100%;'><div id='gzcode' style='padding-top:20px;'><img src='http://tb.nbnet.cc/attachment/images/1/2017/05/q05JppJ5ykC66i096v6k5P7bvcvvGV.png' width='100%' height='100%' id='nosp'></div><div style='float:left;width:100%;height:20px;line-height:20px;font-size:16px;text-align:center;padding-bottom:10px;padding-top:10px'>联系客服 长按扫码</div></div>";

        function wxkf() {

            layer.open({
                title: false,
                type: 1,
                closeBtn: 2,
                shadeClose: true,
                content: wxcode,
                shade: [0.8, '#000']
            });


            $('.layer-anim').css('position', 'fixed');
            $('.layer-anim').css('top', '20%');
            $('.layer-anim').css('left', '0');
            $('.layer-anim').css('right', '0');
            $('.layer-anim').css('width', '100%');
            $('.layer-anim').css('max-width', '250px');
            $('.layer-anim').css('margin', 'auto');
            $('.layer-anim').css('border-radius', '10px');

        }
    </script>

    <script>
        var wxsitecode = "<div style='width:100%;'><div id='gzcode' style='padding-top:20px;'><img src='http://tb.nbnet.cc/attachment/images/1/2017/02/xAga1d9hGmZ9F4mr9fYGx2YaZFx9K4.jpg' width='100%' height='100%' id='nosp'></div><div style='float:left;width:100%;height:20px;line-height:20px;font-size:16px;text-align:center;padding-bottom:10px;padding-top:10px'>关注我们 长按扫码</div></div>";

        function wxsite() {

            layer.open({
                title: false,
                type: 1,
                closeBtn: 2,
                shadeClose: true,
                content: wxsitecode,
                shade: [0.8, '#000']
            });


            $('.layer-anim').css('position', 'fixed');
            $('.layer-anim').css('top', '20%');
            $('.layer-anim').css('left', '0');
            $('.layer-anim').css('right', '0');
            $('.layer-anim').css('width', '100%');
            $('.layer-anim').css('max-width', '250px');
            $('.layer-anim').css('margin', 'auto');
            $('.layer-anim').css('border-radius', '10px');

        }
    </script>



    <script>
var wxshare="<div id='allsharepic' class='sharepicw100' onclick='javascript:layer.closeAll();' style='padding:10px'><div class='sharepicw100 sharepictitle' style='text-align:center;'> 牛贝折扣</div><div class='sharepicw100'><img id='startpic' src='https://img.alicdn.com/imgextra/i3/2313109685/TB2PyxZwY4npuFjSZFmXXXl4FXa_!!2313109685.jpg' class='sharepicw100' style='max-width:94%'></div><div class='sharepicw35 sharepicfl qrcodediv' id='qrcodediv' style='text-align:center;margin:0 auto;'></div><div class='sharepicw60 sharepicfl sharepicpd6'><span class='sharepicw100 sharepicspan1' style='max-width:95%'><b>大胸显小全罩杯文胸无钢圈薄款夏季缩胸蕾丝大码内衣女显胸小胖MM</b></span><span class='sharepicw100 sharepicspan2' style='text-decoration:line-through;color:#666'><small>原价：67.80</small></span><span class='sharepicw100 sharepicspan2'><b>券后价：57.80</b></span></div></div><div class='sharepicw100 sharepicfl sharepicdivbot' style='text-align:center;padding-bottom:20px'>长按扫码，先领券再购物！</div>";

function sharepic(){

layer.open({
  title:false,
  type: 1,
  closeBtn: 2,
  shadeClose: true,
  content: wxshare,
  shade: [0.8, '#000']
});

//
var postssurl = "./index.php?i=1&c=entry&url=http%253A%252F%252Ftb.nbnet.cc%252Fapp%252Findex.php%253Fi%253D1%2526c%253Dentry%2526op%253Dyhj%2526do%253Dshow_all%2526m%253Dbsht_tbk%2526id%253D286004%2526shopid%253D0&id=286004&shopid=0&itempic=https%253A%252F%252Fimg.alicdn.com%252Fimgextra%252Fi3%252F2313109685%252FTB2PyxZwY4npuFjSZFmXXXl4FXa_%2521%25212313109685.jpg&do=abc_getsurl&m=bsht_tbk";
$.post(postssurl, function(dat){
dat = eval('('+dat+')');
if (dat.status==1) {

jQuery('#qrcodediv').qrcode({
    render    : "canvas",//也可以替换为table
    width   : 80,
    height  : 80,
	text    : dat.surl,
	correctLevel    : 1,
	typeNumber  : -1,
});
                }
});
//


$('.layer-anim').css('position','fixed');
$('.layer-anim').css('top','5%');
$('.layer-anim').css('left','0');
$('.layer-anim').css('right','0');
$('.layer-anim').css('width','100%');
$('.layer-anim').css('max-width','90%');
$('.layer-anim').css('margin','auto');
$('.layer-anim').css('border-radius','5px');

    }

function makejumpurl(){
var readurl;
readurl = $('#readurl').html();
readurl2 = encodeURIComponent(readurl);
return readurl2;
}

function openjump(){
var nbjumpurl = makejumpurl();
window.location.href = "./index.php?i=1&c=entry&do=jump&m=bsht_tbk&jumpurl="+nbjumpurl+"&isnice=1";
}
    </script>


    <script>
        $(function () {
            //采集pics
            //function getiteminfo(itemid) {
            $(document).delegate("#nbmore", "click", function () {
                var $thisid = $(this);
                var itemid = $thisid.data("id");
                var nbok = $thisid.attr("nbok");
                if (nbok == 1) {
                    $("#tabtxt").html('商品图文详情（点击查看）');
                    setTimeout('$("html,body").animate({scrollTop:$(".allpreContainer").offset().top},500);', 500);
                    $('.am-tab-panel').hide();
                    $("#nbmore").attr('nbok', '0');
                    return false;
                }
                $("#tabtxt").removeClass('jump');
                $("#nbmore").attr('nbok', '1');
                $("#tab1").fadeIn();
                $("#tabtxt").html('商品图文详情（加载完毕，请您查阅）');
                $("#nbmore").css('text-decoration', 'none');
                //$("#back_top2").fadeIn(500);
                setTimeout('$("html,body").animate({scrollTop:$("#tabtxtthis").offset().top},500);', 500);
                $.ajax({
                    url: "https://hws.m.taobao.com/cache/mtop.wdetail.getItemDescx/4.1/?data=%7Bitem_num_id%3A" + itemid + "%7D&type=jsonp&dataType=jsonp",
                    dataType: 'jsonp',
                    jsonp: 'callback',
                    success: function (result) {
                        if (result.ret[0] == "SUCCESS::接口调用成功") {
                            var len = result.data.images.length;
                            var image = new Array();
                            for (var i = 0; i < len; i++) {
                                // image[i] = "<img class='lazy-bk' src='../addons/bsht_tbk/res/images/load.gif' data-bk='" + result.data.images[i] + "_500x500.jpg' style='width:100%;max-width:100%'>";
                                //image[i] = "<img src='" + result.data.images[i] + "_500x500.jpg' style='width:100%;max-width:100%'>";
                                image[i] = "<img src='" + result.data.images[i] + "' style='width:100%;max-width:100%'>";
                            }
                            $('.am-tab-panel').show();
                            $('.am-tab-panel').html(image);
                            //lazy_img();
                        }
                    }
                });
                //}
            });
            //采集pics
        });
    </script>

    <script>
        $(function () {

            $(document).delegate(".new-coupon,.goodsget", "click", function () {
                var $this = $(this);
                var tklurl = $('#isnbjumpurl').attr('data-id');
                if (!yhjid) {
                    var yhjid = $this.data("id");
                }
                var nbpic = $this.data("bk");
                var apitkl = $('#readtkl').html();
                var apiurl = $('#readurl').html();
                $.ajax({
                    type: "post",
                    url: "./index.php?i=1&c=entry&op=nbpost&shopid=0&do=yhj_tkl_nb_ajax&m=bsht_tbk",
                    dataType: "json",
                    data: { id: yhjid, apitkl: apitkl },
                    success: function (data) {
                        //selection();
                        if (data.code == 1000) {
                            popTao(nbpic, "淘口令", "手慢了，优惠券已领被空！");
                        }
                        else {
                            if (data.tkl == 'error') {
                                openjump();
                            }

                            popTao(nbpic, "淘口令", "复制框内整段文字，打开【手机淘宝】即可【领取优惠券】并购买" + data.tkl);


                            //nb_plus
                            $(".taotip2").html("<span id='copybtn' style='background:#f54d23;color: white;padding:5px 10px;border-radius: 1000px;display:none'>\u4e00\u952e\u590d\u5236</span><div class='share_content' id='" + yhjid + "' style='display:none;position:fixed;top:-1000px'></div>").show(); $("#copybtn").on("click", function () { var a = $(".share").attr("data-taowords"); a = a.replace(/\<\/?(br|p){1}\s*\/?\s*\>/gim, ""); a = a.replace(/&nbsp;/gim, ""); console.log(a); $(".share_content").html(a); $(".share_content").show(); $("#ckcopy").hide() }); $("#copybtn").show(); var clipboard = new Clipboard("#copybtn", { text: function () { return $(".share_content").html() } }); clipboard.on("success", function (a) { $('.taokaocopy').html("<img src='../addons/bsht_tbk/res/images/copyok.png'  style='width:80%;max-width:650px'>"); a.trigger.innerHTML = "复制成功"; a.trigger.style.backgroundColor = "#9ED29E"; $('#copybtn').hide(); a.trigger.style.borderColor = "#9ED29E"; $(".share_content").hide(); console.info("Action:", a.action); console.info("Text:", a.text); console.info("Trigger:", a.trigger); a.clearSelection() }); clipboard.on("error", function (a) { a.trigger.innerHTML = "复制失败"; setTimeout(function () { a.trigger.innerHTML = "硬件不支持" }, 1000); a.trigger.style.backgroundColor = "#666"; a.trigger.style.borderColor = "#9ED29E"; $(".share_content").hide(); console.info("Action:", a.action); console.info("Text:", a.text); console.info("Trigger:", a.trigger); a.clearSelection() });
                            //nb_plus

                        }

                    }
                });
            });


            document.addEventListener("selectionchange", function (e) {
                if (window.getSelection().anchorNode.parentNode.id == 'copy_key_ios_nb' || window.getSelection().anchorNode.id == 'copy_key_ios_nb') {
                    var key = document.getElementById('copy_key_ios_nb');
                    window.getSelection().selectAllChildren(key)
                }
            }, false)
        });
    </script>
    <script>
        function memberckq() {

        }
    </script>
    <script type="text/javascript">
        $(function () {

            //taokouling();mScroll();

            //nbyhq
            var nbyhqurl = "https://uland.taobao.com/cp/coupon?activityId=1121cc83046f4b46b680af50fce1b5ce&itemId=547442613228&af=1";
            $.ajax({
                url: nbyhqurl, dataType: 'jsonp', jsonp: 'callback', success: function (result) {
                    var nbyhqstatus = result.result.retStatus;
                    if (nbyhqstatus > 0 && !isNaN(nbyhqstatus)) {
                        //
                        $('#qplus_yl').html('0');
                        $('#qplus_ylbili').html('0');
                        $('#qplus_lq').css('width', '100%');
                        layer.msg('手慢了，优惠券已被抢光<br>您可以浏览器打开直接购买！', {
                            shade: [0.2, '#000000'],
                            time: 2500,
                            shift: 2
                        }, function () {
                            var statusurl = "./index.php?i=1&c=entry&id=286004&op=nbyhqckre&do=yhj_tkl_nb_ajax&m=bsht_tbk";
                            $.post(statusurl, function (dat) { });
                        });
                        //
                    } else {
                        //memberckq();
                    }
                }
            });
            //nbyhq





            $('.allitem').click(function () { if ($("#product-details2").is(":hidden")) { $("#change_icon").removeClass('am-icon-angle-right').addClass('am-icon-angle-down'); $('.allitem-panel').html('<span class="am-center am-text-center am-margin-vertical-xs">数据努力加载中<i class="am-icon-spinner am-icon-pulse am-margin-left-xs"></i></span>') } else { $("#change_icon").removeClass('am-icon-angle-down').addClass('am-icon-angle-right') } var itemid = $(this).attr('data-itemid'); getitem(itemid, 1) }); function getitem(itemid, type) { if (type == 2) { var apiurl = "http://uland.taobao.com/cp/coupon_recommend?recommendType=2&count=4&pid=mm_17057933_17798240_64626536&itemId=" + itemid + "&src=pgy_pgyqf&dx=0" } else { var apiurl = "http://uland.taobao.com/cp/coupon_recommend?recommendType=1&count=4&pid=mm_17057933_17798240_64626536&itemId=" + itemid + "&src=pgy_pgyqf&dx=0" } $.ajax({ url: apiurl, dataType: 'jsonp', jsonp: 'callback', success: function (result) { if (result.result.totalCount > 0) { if (type == 1) { $('.allitem').html('同店官方其他精品<span class="am-text-xs" style="color:#306de9">（点击查看）</span><i class="am-icon-angle-right am-fr am-icon-sm" id="change_icon"></i>') } if (type == 2) { $('.allitem').html('同类宝贝官方推荐<span class="am-text-xs" style="color:#306de9">（点击查看）</span><i class="am-icon-angle-right am-fr am-icon-sm" id="change_icon"></i>') } var len = result.result.couponList.length; var allinfo = result.result.couponList; var image2 = new Array(); var itemfee2 = ''; if (type == 2) { for (var i = 0; i < len; i++) { var itemfee2 = Number(allinfo[i].item.discountPrice - allinfo[i].amount).toFixed(1); image2[i] = '<li class="picCon"><a class="goods-a nbjump" id="' + allinfo[i].item.clickUrl + '" onclick="yhjjumpurl(this);">' + '<img class="loazd" src="' + allinfo[i].item.picUrl + '_200x200.jpg"/></a>' + '<a id="' + allinfo[i].item.clickUrl + '" onclick="yhjjumpurl(this);">' + '<h3>' + allinfo[i].item.title + '</h3>' + '<div class="list-price buy">' + '<span class="price-new" style="font-size:14px"><i>券后 ￥</i>' + itemfee2 + '</span>' + '<a id="J_weixin" id="' + allinfo[i].item.clickUrl + '" onclick="yhjjumpurl(this);" class="coupon"><span class="good-btn" style="color:#999">销量' + allinfo[i].item.biz30Day + '</span></a>' + '</div></a><div class="lingquan">' + '<a id="J_weixin" id="' + allinfo[i].item.clickUrl + '" onclick="yhjjumpurl(this);"class="coupon"><span style="">' + allinfo[i].amount + '元券</span></a>' + '</div></li>' } } else { for (var i = 0; i < len; i++) { var itemfee2 = Number(allinfo[i].item.discountPrice - 10).toFixed(1); var jumpurl = escape('//uland.taobao.com/coupon/edetail?activityId=1121cc83046f4b46b680af50fce1b5ce&pid=mm_17057933_17798240_64626536&itemId=' + allinfo[i].item.itemId + '&src=pgy_pgyqf&dx=0'); image2[i] = '<li class="picCon"><a class="goods-a nbjump" id="' + jumpurl + '" onclick="yhjjumpurl(this);">' + '<img class="loazd" src="' + allinfo[i].item.picUrl + '_200x200.jpg"/></a>' + '<a id="' + jumpurl + '" onclick="yhjjumpurl(this);">' + '<h3>' + allinfo[i].item.title + '</h3>' + '<div class="list-price buy">' + '<span class="price-new" style="font-size:14px"><i>券后 ￥</i>' + itemfee2 + '</span>' + '<a id="' + jumpurl + '" onclick="yhjjumpurl(this);" class="coupon"><span class="good-btn" style="color:#999">销量' + allinfo[i].item.biz30Day + '</span></a>' + '</div></a><div class="lingquan">' + '<a id="' + jumpurl + '" onclick="yhjjumpurl(this);"class="coupon"><span style="">10元券</span></a>' + '</div></li>' } } $('.allitem-panel').html(image2); var aa = $(".nbplusmore").innerHeight(); var bb = $(".allnb").innerWidth(); var cc = $(".nbplusright").innerWidth(); var dd = bb - aa - 20; $(".goods-list a img").css('height', aa); $(".goods-list a img").css('width', aa); $(".goods-list").css('width', aa); $(".nballr").css('width', dd) } else { if (type == 2) { $('.allitem-panel').html('<span class="am-center am-text-center am-margin-vertical-xs">暂无更多同类宝贝<i class="am-icon-spinner am-icon-pulse am-margin-left-xs"></i></span>') } else { getitem(itemid, 2) } } } }) }


        });
    </script>

    <script>
        function nbshare() {
            var nbshare = "<div id='allsharepic' class='sharepicw100' style='padding:10px'><div class='sharepicw100' style='max-width:94%;padding-top:5px;padding-bottom:5px'><center>请选择您要发送个性音乐标签的类型</center></div><div class='sharepicw100'><img id='startpic' src='http://tb.nbnet.cc/addons/bsht_tbk/res/images/nbsahrehb_pic.jpg' class='sharepicw100' style='max-width:94%;padding-top:5px;padding-bottom:5px' onclick='nbshare_hb();'></div><div class='sharepicw100'><img id='startpic' src='http://tb.nbnet.cc/addons/bsht_tbk/res/images/nbsahrekq_pic.jpg' class='sharepicw100' style='max-width:94%;padding-top:5px;padding-bottom:5px' onclick='nbshare_kq();'></div><div class='sharepicw100'><img id='startpic' src='http://tb.nbnet.cc/addons/bsht_tbk/res/images/nbsahreyhj_pic.jpg' class='sharepicw100' style='max-width:94%;padding-top:5px;padding-bottom:5px' onclick='nbshare_yhj();'></div></div>";
            layer.open({
                title: false,
                type: 1,
                closeBtn: 2,
                shadeClose: true,
                content: nbshare,
                shade: [0.8, '#000']
            });
            $('.layer-anim').css('position', 'fixed');
            $('.layer-anim').css('top', '5%');
            $('.layer-anim').css('left', '0');
            $('.layer-anim').css('right', '0');
            $('.layer-anim').css('width', '100%');
            $('.layer-anim').css('max-width', '90%');
            $('.layer-anim').css('margin', 'auto');
            $('.layer-anim').css('border-radius', '5px');
        }
    </script>


    <script>
        function nbshare_hb() {
            sharedata['title'] = '您有一个红包未领取';
            sharedata['desc'] = "总额10元";
            sharedata['type'] = 'music';
            sharedata['link'] = "http://tb.nbnet.cc/app/index.php?i=1&c=entry&op=yhj&do=show_all&m=bsht_tbk&id=286004&shopid=0";
            sharedata['imgUrl'] = "http://tb.nbnet.cc/addons/bsht_tbk/res/images/nbsahrehb.jpg";
            layer.msg('【红包】音乐标签生成完毕<br>请点击右上角分享给好友', {
                shade: [0.8, '#000000'],
                time: 2500,
                shift: 2
            }, function () {
                layer.closeAll();
            });
        }
    </script>

    <script>
        function nbshare_yhj() {
            sharedata['title'] = '您有优惠券未领取';
            sharedata['desc'] = "10元优惠券";
            sharedata['type'] = 'music';
            sharedata['link'] = "http://tb.nbnet.cc/app/index.php?i=1&c=entry&op=yhj&do=show_all&m=bsht_tbk&id=286004&shopid=0";
            sharedata['imgUrl'] = "http://tb.nbnet.cc/addons/bsht_tbk/res/images/nbsahreyhj.jpg";
            layer.msg('【优惠券】音乐标签生成完毕<br>请点击右上角分享给好友', {
                shade: [0.8, '#000000'],
                time: 2500,
                shift: 2
            }, function () {
                layer.closeAll();
            });
        }
    </script>

    <script>
        function nbshare_kq() {
            sharedata['title'] = '您有一张卡券未领取';
            sharedata['desc'] = "点击领取10元卡券";
            sharedata['type'] = 'music';
            sharedata['link'] = "http://tb.nbnet.cc/app/index.php?i=1&c=entry&op=yhj&do=show_all&m=bsht_tbk&id=286004&shopid=0";
            sharedata['imgUrl'] = "http://tb.nbnet.cc/addons/bsht_tbk/res/images/nbsahrekq.jpg";
            layer.msg('【卡券】音乐标签生成完毕<br>请点击右上角分享给好友', {
                shade: [0.8, '#000000'],
                time: 2500,
                shift: 2
            }, function () {
                layer.closeAll();
            });
        }
    </script>
    <script>
        //nice
        function nice() {
            $('.nbmenu').hide();
            $('.loadingbar3').hide();
            $('.loadingbar3').show();
            setTimeout(function () {
                $('.loadingbar3').hide();
                //window.location.reload();
                $('.nbmenu').show();
            }, 1000);
        }
        //nice
    </script>

    <script>
        function yhjjumpurl(obj) {
            var otjumpurl = "http:" + obj.id;
            window.location.href = "./index.php?i=1&c=entry&do=jump&m=bsht_tbk&ot=1&jumpurl=" + otjumpurl;
        }


        $(function () {
            $('.nbmenu').hide();
            $('.loadingbar3').hide();
            $('.loadingbar3').show();
            var url = "./index.php?i=1&c=entry&id=286004&act=itemall&shopid=0&do=hit_ajax&m=bsht_tbk";
            $.post(url, function (dat) {
                dat = eval('(' + dat + ')');
                //nice();
                $('#readurl').html(dat.yhjurl);
                if (dat.id > 0) {
                    var yhjid = dat.id;
                    $('.goodsget').attr('id', dat.id);
                    $('.goodsget').attr('data-id', dat.id);
                    setTimeout(function () {
                        $('.loadingbar3').hide();
                        //window.location.reload();
                        $('.nbmenu').show();
                    }, 10);
                }

                if (dat.yhjurl) {
                    var newyhjurl = encodeURIComponent(dat.yhjurl);

                    nbjumpurl = "http://tb.nbnet.cc/app/index.php?i=1&c=entry&do=jump&m=bsht_tbk&jumpurl=" + newyhjurl;
                    $('#isnbjumpurl').val(nbjumpurl);
                    $('#isnbjumpurl').attr('data-id', newyhjurl);
      
                    var nowurl = window.location.href;
                    if (dat.qfee > 0 && dat.hdre == 1 && nowurl.indexOf('nbtbk') == -1) {
                        if (dat.yhjurl.indexOf('e=') == -1) {
                            var reurl = window.location.href + "&re=nbtbk";
                            window.location.href = reurl;
                        }
                    }
                }



                if (dat.nbqplus == 0) {
                    layer.msg('该商品可能存在多张店铺券，您可进店领取！', {
                        shade: [0.8, '#000000'],
                        time: 1500,
                        shift: 2
                    }, function () {
                    });
                }

                var inyuji = dat.yuji;
                var newyuji = parseFloat(dat.yuji);
                var oldyuji = parseFloat($('.detailfanmoney').html());
                if (newyuji > 0) {
                    if (newyuji > oldyuji && inyuji) {
                        $('.detailfanmoney').html(inyuji);
                    }
                }


                if (dat.hdbl > 0) {
                    var hdbl = dat.hdbl;
                    if (hdbl < 15) {
                        var hdblsurl = "./index.php?i=1&c=entry&id=286004&op=nbyhqckre&do=yhj_tkl_nb_ajax&m=bsht_tbk";
                        $.post(hdblsurl, function (hdbldat) { });
                    }
                }


                if (dat.reloadstart == 1) {
                    //nice();
                    $('.detailfanmoney').html(dat.yuji);
                    $('#readurl').html(dat.yhjurl);
                    $('#readtkl').html(dat.tkl);
                    //alert(dat.yhjurl);

                    setTimeout(function () {
                        $('.loadingbar3').hide();
                        //window.location.reload();
                        $('.nbmenu').show();
                    }, 300);

                    if (dat.isnone == 1) {
                        layer.msg('优惠券已失效<br>您可以浏览器打开直接购买', {
                            shade: [0.8, '#000000'],
                            time: 1500,
                            shift: 2
                        }, function () {
                            //window.location.href="./index.php?i=1&c=entry&do=index&m=bsht_tbk";
                        });
                    }

                } else {

                    setTimeout(function () {
                        $('.loadingbar3').hide();
                        //window.location.reload();
                        $('.nbmenu').show();
                    }, 000);

                }
            });


            wx.config(jssdkconfig);
            var $_share = { "title": "\u301010\u5143\u5238\u3011\u3010\u5238\u540e57.80\u3011\u5927\u80f8\u663e\u5c0f\u5168\u7f69\u676f\u6587\u80f8\u65e0\u94a2\u5708\u8584\u6b3e\u590f\u5b63\u7f29\u80f8\u857e\u4e1d\u5927\u7801\u5185\u8863\u5973\u663e\u80f8\u5c0f\u80d6MM", "imgUrl": "https:\/\/img.alicdn.com\/imgextra\/i3\/2313109685\/TB2PyxZwY4npuFjSZFmXXXl4FXa_!!2313109685.jpg", "desc": "\u5927\u80f8\u663e\u5c0f\u5168\u7f69\u676f\u6587\u80f8\u65e0\u94a2\u5708\u8584\u6b3e\u590f\u5b63\u7f29\u80f8\u857e\u4e1d\u5927\u7801\u5185\u8863\u5973\u663e\u80f8\u5c0f\u80d6MM", "link": "http:\/\/tb.nbnet.cc\/app\/index.php?i=1&c=entry&op=yhj&do=show_all&m=bsht_tbk&id=286004&shopid=0" };
            if (typeof sharedata == 'undefined') {
                sharedata = $_share;
            } else {
                sharedata['title'] = sharedata['title'] || $_share['title'];
                sharedata['desc'] = sharedata['desc'] || $_share['desc'];
                sharedata['link'] = sharedata['link'] || $_share['link'];
                sharedata['imgUrl'] = sharedata['imgUrl'] || $_share['imgUrl'];
            }
            if (sharedata.imgUrl == '') {
                var _share_img = $('body img:eq(0)').attr("src");
                if (_share_img == "") {
                    sharedata['imgUrl'] = window.sysinfo.attachurl + 'images/global/wechat_share.png';
                } else {
                    sharedata['imgUrl'] = util.tomedia(_share_img);
                }
            }
            if (sharedata.desc == '') {
                var _share_content = util.removeHTMLTag($('body').html());
                if (typeof _share_content == 'string') {
                    sharedata.desc = _share_content.replace($_share['title'], '')
                }
            }
            wx.ready(function () {

                wx.onMenuShareAppMessage(sharedata);
                wx.onMenuShareTimeline(sharedata);
                wx.onMenuShareQQ(sharedata);
                wx.onMenuShareWeibo(sharedata);

                sharedata.success = function () {


                    var url = "./index.php?i=1&c=entry&id=286004&act=itemall&do=share_ajax&m=bsht_tbk";
                    $.post(url, function (dat) {
                        dat = eval('(' + dat + ')');
                    });

                }


            });


            var $_share = { "title": "\u301010\u5143\u5238\u3011\u3010\u5238\u540e57.80\u3011\u5927\u80f8\u663e\u5c0f\u5168\u7f69\u676f\u6587\u80f8\u65e0\u94a2\u5708\u8584\u6b3e\u590f\u5b63\u7f29\u80f8\u857e\u4e1d\u5927\u7801\u5185\u8863\u5973\u663e\u80f8\u5c0f\u80d6MM", "imgUrl": "https:\/\/img.alicdn.com\/imgextra\/i3\/2313109685\/TB2PyxZwY4npuFjSZFmXXXl4FXa_!!2313109685.jpg", "desc": "\u5927\u80f8\u663e\u5c0f\u5168\u7f69\u676f\u6587\u80f8\u65e0\u94a2\u5708\u8584\u6b3e\u590f\u5b63\u7f29\u80f8\u857e\u4e1d\u5927\u7801\u5185\u8863\u5973\u663e\u80f8\u5c0f\u80d6MM", "link": "http:\/\/tb.nbnet.cc\/app\/index.php?i=1&c=entry&op=yhj&do=show_all&m=bsht_tbk&id=286004&shopid=0" };
            sharedata['title'] = $_share['title'];
            sharedata['link'] = $_share['link'];
            sharedata['imgUrl'] = $_share['imgUrl'];

        });
        //加写
    </script>

    <script>
        //收藏
        $(function () {

            var ajaxw = $('.item-good').width();
            $('.ajaxw').css('width', ajaxw);
            $('.volist').css('top', '-550px');
            setTimeout('$("html,body").animate({scrollTop:$("#mainall").offset().top},500);', 500);

            $('.loadingbar2').hide();
            $(".nbjump").click(function () {
                $('.loadingbar2').show();
                setTimeout(function () {
                    $('.loadingbar2').hide();
                }, 3000);
            });

            $(".addfav").click(function () {

                layer.msg('本功能仅限微信会员使用！');
                $('.addfav').html('收藏');


                var url = "./index.php?i=1&c=entry&itempic=https%3A%2F%2Fimg.alicdn.com%2Fimgextra%2Fi3%2F2313109685%2FTB2PyxZwY4npuFjSZFmXXXl4FXa_%21%212313109685.jpg&itemtitle=%E5%A4%A7%E8%83%B8%E6%98%BE%E5%B0%8F%E5%85%A8%E7%BD%A9%E6%9D%AF%E6%96%87%E8%83%B8%E6%97%A0%E9%92%A2%E5%9C%88%E8%96%84%E6%AC%BE%E5%A4%8F%E5%AD%A3%E7%BC%A9%E8%83%B8%E8%95%BE%E4%B8%9D%E5%A4%A7%E7%A0%81%E5%86%85%E8%A1%A3%E5%A5%B3%E6%98%BE%E8%83%B8%E5%B0%8F%E8%83%96MM&itemid=286004&act=fav&itemfee=67.80&itemfee2=57.80&itemfee3=10&itemmsell=316&do=fav_ajax&m=bsht_tbk";
                $.post(url, function (dat) {
                    dat = eval('(' + dat + ')');

                    if (dat.status == 1) {
                        layer.msg('收藏成功！');
                        $('.addfav').html('取消');
                        $('.addfav').removeClass('goodscollection');
                        $('.addfav').addClass('goodscollection2');
                    }

                    if (dat.status == 0) {
                        layer.msg('已取消收藏！');
                        $('.addfav').html('收藏');
                        $('.addfav').removeClass('goodscollection2');
                        $('.addfav').addClass('goodscollection');
                    }

                    if (dat.status == 500) {
                        layer.msg('本功能仅限微信用户使用！');
                        $('.addfav').html('收藏');
                    }

                });
            });

        });
        //收藏
    </script>

    <script>
        var camera = 1;
        $(function () {
            var ua = navigator.userAgent.toLowerCase();
            if (ua.match(/iphone/i) == "iphone") {
                var iphoneInfo = ua.match(/iphone os (\d{1,})/i);
                var iosVersion = iphoneInfo[1];
                if (iosVersion < 9) {
                    camera = 0;
                }
            }
        });
    </script>

    <script>

        $(".nb-camera").click(function () {
            if (camera == 1) {
                if ($('.imgData').attr('src') == "") {
                    $('.image_loading').show();
                    $('.image_show').hide();
                }
                canvasApp();
                $(".nb-sharecanvas").css("display", "flex");
            } else {
                sharepic();
            }
        });

        $(".nb-canvas .am-icon-close").click(function () {
            $(".nb-sharecanvas").css("display", "none");
        });

        function canvasApp() {
            var postsurl = "./index.php?i=1&c=entry&url=http%253A%252F%252Ftb.nbnet.cc%252Fapp%252Findex.php%253Fi%253D1%2526c%253Dentry%2526op%253Dyhj%2526do%253Dshow_all%2526m%253Dbsht_tbk%2526id%253D286004%2526shopid%253D0&id=286004&shopid=0&itempic=https%253A%252F%252Fimg.alicdn.com%252Fimgextra%252Fi3%252F2313109685%252FTB2PyxZwY4npuFjSZFmXXXl4FXa_%2521%25212313109685.jpg&do=abc_getsurl&m=bsht_tbk";
            //
            $.ajax({
                url: postsurl,
                dataType: 'json',
                jsonp: 'callback',
                success: function (dat) {
                    if (dat.status == 1) {
                        nburl = dat.reurl;
                        nbpic = dat.repic;
                    } else {
                        sharepic();
                        return false;
                    }
                    var canvas = document.getElementById('sharecanvas');
                    var ctx = canvas.getContext("2d");
                    ctx.fillStyle = "#fff";
                    canvas.width = (document.documentElement.clientWidth * 0.9) * 2;
                    canvas.height = canvas.width / 2 + 680;
                    var imageData = ctx.getImageData(0, 0, canvas.width, canvas.height);
                    for (var i = 0; i < imageData.data.length; i += 4) {
                        if (imageData.data[i + 3] == 0) {
                            imageData.data[i] = 255;
                            imageData.data[i + 1] = 255;
                            imageData.data[i + 2] = 255;
                            imageData.data[i + 3] = 255;
                        }
                    }
                    ctx.putImageData(imageData, 0, 0);
                    var item_img = new Image()
                    item_img.setAttribute('crossOrigin', 'anonymous');
                    item_img.src = dat.repic;
                    item_img.onerror = function () {
                        sharepic();
                        $('.image_loading').hide();
                        $('.image_show').hide();
                        $('.nb-sharecanvas').hide();
                        return false;
                    }
                    item_img.onload = function () {
                        ctx.drawImage(item_img, 0, 0, canvas.width, canvas.width);
                        var code_img = new Image()
                        code_img.setAttribute('crossOrigin', 'anonymous');
                        code_img.src = dat.reurl;
                        code_img.onerror = function () {
                            sharepic();
                            $('.image_loading').hide();
                            $('.image_show').hide();
                            $('.nb-sharecanvas').hide();
                            return false;
                        }
                        code_img.onload = function () {
                            ctx.drawImage(code_img, canvas.width - 220, canvas.width + 20, 200, 200);
                            var str = "大胸显小全罩杯文胸无钢圈薄款夏季缩胸蕾丝大码内衣女显胸小胖MM";
                            ctx.fillStyle = '#605761';
                            ctx.lineWidth = 1;
                            ctx.textAlign = 'left';
                            ctx.textBaseline = "top";
                            ctx.font = '28px Helvetica';
                            var lineWidth = 0;
                            var canvasWidth = canvas.width - 60;
                            var initHeight = canvas.width + 30;
                            var lastSubStrIndex = 0;
                            for (var i = 0; i <= str.length; i++) {
                                lineWidth += ctx.measureText(str[i]).width;
                                if (lineWidth > canvasWidth - 230) {
                                    ctx.fillText(str.substring(lastSubStrIndex, i), 20, initHeight);
                                    initHeight += 40;
                                    lineWidth = 0;
                                    lastSubStrIndex = i;
                                }
                                if (i == str.length - 1) {
                                    ctx.fillText(str.substring(lastSubStrIndex, i + 1), 20, initHeight);
                                }
                            }
                            var price = "原价：67.80";
                            ctx.fillStyle = '#aba0ac';
                            ctx.textAlign = 'left';
                            ctx.font = '30px Helvetica';
                            ctx.textBaseline = "top";
                            ctx.fillText(price, 20, initHeight + 30);
                            ctx.strokeStyle = '#aba0ac';
                            ctx.lineWidth = 2;
                            ctx.moveTo(20, initHeight + 46);
                            ctx.lineTo(200, initHeight + 46);
                            ctx.stroke();
                            var end_price_title = "券后价:";
                            ctx.fillStyle = '#aba0ac';
                            ctx.textAlign = 'left';
                            ctx.font = '30px Helvetica';
                            ctx.textBaseline = "top";
                            ctx.fillText(end_price_title, 20, initHeight + 80);
                            var end_price = "57.80";
                            ctx.fillStyle = '#fba137';
                            ctx.textAlign = 'left';
                            ctx.font = '42px Helvetica';
                            ctx.textBaseline = "top";
                            ctx.fillText(end_price, 120, initHeight + 72);
                            ctx.setLineDash([10, 5]);
                            ctx.lineWidth = 1;
                            ctx.strokeStyle = '#aba0ac';
                            ctx.beginPath();
                            ctx.moveTo(10, canvas.height - 50);
                            ctx.lineTo(canvas.width - 10, canvas.height - 50);
                            ctx.stroke();
                            ctx.fillStyle = 'white'
                            ctx.lineWidth = 0;
                            ctx.beginPath();
                            ctx.moveTo((canvas.width - 308) / 2 - 10, canvas.height - 64);
                            ctx.lineTo((canvas.width - 308) / 2 + 320, canvas.height - 64);
                            ctx.lineTo((canvas.width - 308) / 2 + 320, canvas.height - 46);
                            ctx.lineTo((canvas.width - 308) / 2 - 10, canvas.height - 46);
                            ctx.lineTo((canvas.width - 308) / 2 - 10, canvas.height - 64);
                            ctx.fill();
                            var code_title = '长按二维码识别查看商品';
                            ctx.fillStyle = '#aba0ac';
                            ctx.font = '28px Helvetica';
                            ctx.fillText(code_title, (canvas.width - 308) / 2, canvas.height - 64);
                            var image = new Image();
                            image.setAttribute('crossOrigin', 'anonymous');
                            image.src = canvas.toDataURL("img/jpeg");
                            $(".imgData").attr("background", "white");
                            $(".imgData").attr("src", image.src);
                            //$(".imgData").attr("id",image.src);
                            $(".imgData").show();

                            if ($('.imgData').attr('src') != "") {
                                $('.image_loading').hide();
                                $('.image_show').show();
                                $('.am-icon-close').show();
                            }
                        }
                    }
                    //
                }
            });
            //
        }

    </script>
    <script>
        function gotop() {
            setTimeout('$("html,body").animate({scrollTop:$("body").offset().top},500);', 500);
            $(".go-top").addClass("top-button-hide").removeClass("top-button-show");
        }
        window.addEventListener("scroll", function (event) {
            if (document.body.scrollTop > 500) {
                $(".go-top").removeClass("top-button-hide").addClass("top-button-show");
            } else {
                $(".go-top").addClass("top-button-hide").removeClass("top-button-show");
            }
        });
    </script>
</body>
</html>
